package com.langsin.service.impl;

import com.langsin.dao.UserDao;
import com.langsin.dao.impl.UserDaoImpl;
import com.langsin.service.UserLoginService;
import com.langsin.vo.User;

public class UserLoginServiceImpl implements UserLoginService{

    private UserDao userDao = new UserDaoImpl();

    @Override
    public User queryUserByNameAndPass(String username, String password) {
        User user = null;
        try {
            user = userDao.queryUser(username,password);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return user;
    }
}
